package cn.wolfcode.shop.exception;

import cn.wolfcode.shop.result.CodeMsg;
import lombok.Getter;
import lombok.Setter;

@Getter@Setter
public class GlobalException extends RuntimeException{
    private CodeMsg codeMsg;
    public GlobalException(){
        super();
    }
    public GlobalException(CodeMsg codeMsg){
        super(codeMsg.getMsg());
        this.codeMsg = codeMsg;
    }
}
